Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vm: Add a transaction execution function #3186

Merged
merged 6 commits into from
Dec 22, 2024
Merged

Conversation

moCello
Copy link
Member

@moCello moCello commented Dec 13, 2024

In order to move execute to our vm some contract-deployment functionalities had to move as well:

  • the calculation of the bytecode charge is now a method of dusk_core::transfer::Transaction.deploy_charge
  • the verification of the stored bytecode hash can now be done via the method dusk_core::transfer::data::Bytecode.verify_hash
  • generating a contract id can now be done via dusk_core::abi::gen_contract_id

Resolves #3185

@moCello moCello force-pushed the mocello/3185_execute branch from 7c53d2c to 15623e0 Compare December 13, 2024 15:10
@moCello moCello marked this pull request as ready for review December 13, 2024 15:49
@moCello moCello force-pushed the mocello/3185_execute branch 3 times, most recently from eaf0a6a to 87fd7a8 Compare December 16, 2024 14:05
HDauven
HDauven previously approved these changes Dec 16, 2024
Copy link
Member

@HDauven HDauven left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, very nice how we can get rid of the execute in test utils

It might be good to wait for a second opinion from @miloszm or @herr-seppia though

execution-core/src/transfer.rs Outdated Show resolved Hide resolved
@moCello moCello changed the title rusk-abi: Add transaction execution function rusk-abi: Add a transaction execution function Dec 18, 2024
@moCello moCello changed the title rusk-abi: Add a transaction execution function vm: Add a transaction execution function Dec 21, 2024
@moCello moCello force-pushed the mocello/3185_execute branch from 87fd7a8 to f957ca8 Compare December 21, 2024 16:08
@moCello moCello changed the base branch from master to mocello/3235_vm December 21, 2024 16:09
@moCello moCello force-pushed the mocello/3185_execute branch from f957ca8 to 8ebe6ed Compare December 21, 2024 16:22
@moCello moCello requested review from miloszm and HDauven December 21, 2024 16:23
HDauven
HDauven previously approved these changes Dec 21, 2024
Copy link
Member

@HDauven HDauven left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Tested a binary based off of commit 8ebe6edc4c98a3cf654cba457034a02597e8cb19 against testnet. Works as expected and is backward compatible.

miloszm
miloszm previously approved these changes Dec 21, 2024
Base automatically changed from mocello/3235_vm to master December 22, 2024 12:50
@moCello moCello dismissed stale reviews from miloszm and HDauven December 22, 2024 12:50

The base branch was changed.

@moCello moCello force-pushed the mocello/3185_execute branch from 8ebe6ed to e59474d Compare December 22, 2024 13:07
@moCello moCello requested review from ZER0, HDauven and miloszm December 22, 2024 13:07
HDauven
HDauven previously approved these changes Dec 22, 2024
@moCello moCello merged commit e59474d into master Dec 22, 2024
32 checks passed
@moCello moCello deleted the mocello/3185_execute branch December 22, 2024 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

vm: Add transaction execution function
4 participants